﻿using System;

namespace YArchitech.HCLoad.XmlData
{
	public class Project
	{
		public Project(DataBase dataBase)
		{
			this.parent = dataBase;
			this.weatherData = new WeatherData(this);
			this.AddBuildingCollect();
		}

		public DataBase Parent
		{
			get
			{
				return this.parent;
			}
			set
			{
				this.parent = value;
			}
		}

		public int ID
		{
			get
			{
				return this.nID;
			}
			set
			{
				this.nID = value;
			}
		}

		public int CalType
		{
			get
			{
				return this.nCalType;
			}
			set
			{
				this.nCalType = value;
			}
		}

		public string Name
		{
			get
			{
				return this.sName;
			}
			set
			{
				this.sName = value;
			}
		}

		public string Description
		{
			get
			{
				return this.sDescription;
			}
			set
			{
				this.sDescription = value;
			}
		}

		public string GuidString
		{
			get
			{
				return this.sGuidString;
			}
			set
			{
				this.sGuidString = value;
			}
		}

		public double[] ZsLfhXr
		{
			get
			{
				return this.adZsLfhXr;
			}
			set
			{
				this.adZsLfhXr = value;
			}
		}

		public double[] ZsLfhQr
		{
			get
			{
				return this.adZsLfhQr;
			}
			set
			{
				this.adZsLfhQr = value;
			}
		}

		public double[] ZsSfh
		{
			get
			{
				return this.adZsSfh;
			}
			set
			{
				this.adZsSfh = value;
			}
		}

		public double DjRfhXr
		{
			get
			{
				return this.dDjRfhXr;
			}
			set
			{
				this.dDjRfhXr = value;
			}
		}

		public double DjRfhQr
		{
			get
			{
				return this.dDjRfhQr;
			}
			set
			{
				this.dDjRfhQr = value;
			}
		}

		public double DjSfh
		{
			get
			{
				return this.dDjSfh;
			}
			set
			{
				this.dDjSfh = value;
			}
		}

		public string projectNum
		{
			get
			{
				return this.sprojectNum;
			}
			set
			{
				this.sprojectNum = value;
			}
		}

		public string BuilderUnit
		{
			get
			{
				return this.sBuilderUnit;
			}
			set
			{
				this.sBuilderUnit = value;
			}
		}

		public string CalPeople
		{
			get
			{
				return this.sCalPeople;
			}
			set
			{
				this.sCalPeople = value;
			}
		}

		public string CheckPeople
		{
			get
			{
				return this.sCheckPeople;
			}
			set
			{
				this.sCheckPeople = value;
			}
		}

		public string RedactPeople
		{
			get
			{
				return this.sRedactPeople;
			}
			set
			{
				this.sRedactPeople = value;
			}
		}

		public string ProjectTime
		{
			get
			{
				return this.sProjectTime;
			}
			set
			{
				this.sProjectTime = value;
			}
		}

		public int LfhUnit
		{
			get
			{
				return this.nLfhUnit;
			}
			set
			{
				this.nLfhUnit = value;
			}
		}

		public int SfhUnit
		{
			get
			{
				return this.nSfhUnit;
			}
			set
			{
				this.nSfhUnit = value;
			}
		}

		public int RfhUnit
		{
			get
			{
				return this.nRfhUnit;
			}
			set
			{
				this.nRfhUnit = value;
			}
		}

		public double LfhXzXs
		{
			get
			{
				return this.dLfhXzXs;
			}
			set
			{
				this.dLfhXzXs = value;
			}
		}

		public double SfhXzXs
		{
			get
			{
				return this.dSfhXzXs;
			}
			set
			{
				this.dSfhXzXs = value;
			}
		}

		public double RfhXzXs
		{
			get
			{
				return this.dRfhXzXs;
			}
			set
			{
				this.dRfhXzXs = value;
			}
		}

		public WeatherData WeatherData
		{
			get
			{
				return this.weatherData;
			}
			set
			{
				this.weatherData = value;
			}
		}

		public BuildingCollect BuildingCollect
		{
			get
			{
				return this.buildingCollect;
			}
		}

		private void AddBuildingCollect()
		{
			try
			{
				this.buildingCollect = new BuildingCollect(this);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.ToString());
			}
		}

		private DataBase parent;

		private int nID;

		private int nCalType;

		private string sName;

		private string sDescription;

		private string sGuidString;

		private double[] adZsLfhXr;

		private double[] adZsLfhQr;

		private double[] adZsSfh;

		private double dDjRfhXr;

		private double dDjRfhQr;

		private double dDjSfh;

		private string sprojectNum;

		private string sBuilderUnit;

		private string sCalPeople;

		private string sCheckPeople;

		private string sRedactPeople;

		private string sProjectTime;

		private int nLfhUnit;

		private int nSfhUnit;

		private int nRfhUnit;

		private double dLfhXzXs;

		private double dSfhXzXs;

		private double dRfhXzXs;

		private WeatherData weatherData;

		private BuildingCollect buildingCollect;
	}
}
